using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace DS.SludgeEngine.Drawing
{
    public class Rectangle : Shape
    {
        public Rectangle(Vector3 start, Vector3 end, Color color)
        {
            PrivitiveType = PrimitiveType.LineList;
            Vertices.Add(new VertexPositionColor(new Vector3(start.X, start.Y, 0), color));
            Vertices.Add(new VertexPositionColor(new Vector3(end.X, start.Y, 0), color));
            Vertices.Add(new VertexPositionColor(new Vector3(end.X, start.Y, 0), color));
            Vertices.Add(new VertexPositionColor(new Vector3(end.X, end.Y, 0), color));
            Vertices.Add(new VertexPositionColor(new Vector3(end.X, end.Y, 0), color));
            Vertices.Add(new VertexPositionColor(new Vector3(start.X, end.Y, 0), color));
            Vertices.Add(new VertexPositionColor(new Vector3(start.X, end.Y, 0), color));
            Vertices.Add(new VertexPositionColor(new Vector3(start.X, start.Y, 0), color));
        }  
     
    }
}
